package com.example.a2209_mianshi.ui.mall

import com.bumptech.glide.Glide
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.a2209_mianshi.R
import com.example.a2209_mianshi.ui.mall.model.MallGoodsInfoPageResponse

class DemoAdapter : BaseQuickAdapter<MallGoodsInfoPageResponse,BaseViewHolder>(R.layout.item_demo) {
    override fun convert(holder: BaseViewHolder, item: MallGoodsInfoPageResponse) {
        Glide.with(context).load(item.mainImgUrl).into(holder.getView(R.id.iv_icon))
        holder.setText(R.id.tv_title,item.title)
    }
}